clk-bcm2835: Correct the prediv logic
authorPhil Elwell <phil@raspberrypi.org>
Wed, 1 Mar 2017 16:06:53 +0000 (16:06 +0000)
committerRaspbian kernel package updater <root@raspbian.org>
Thu, 15 Feb 2018 17:28:59 +0000 (17:28 +0000)
commit74f8af2792748661f75a32c7c5723b8632081e60
treea25036aaddc879ba1f20cf8b7c8c8f4fadad3180
parent1568eca1cc649d3e137b69d6c7350f3adf72d326
clk-bcm2835: Correct the prediv logic

If a clock has the prediv flag set, both the integer and fractional
parts must be scaled when calculating the resulting frequency.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
drivers/clk/bcm/clk-bcm2835.c